<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <div class="title_name">蓝桥xxx管理系统</div>
        <el-menu
            :default-active="$route.path"
            :router="true"
            background-color="black"
            text-color="#fff"

        >


          <el-sub-menu index="/park/1"  >
            <template #title><span class="menu-title">一级菜单</span></template>
            <el-menu-item index="/residentInfo">居民信息管理</el-menu-item>

          </el-sub-menu>

        </el-menu>

      </el-aside>


      <el-container>


        <el-header>
          111
        </el-header>
        <el-main>
          <RouterView/>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<style scoped>
.common-layout {
  width: 100%;
  height: 100%;


}

.el-header {
  padding-left: 0px;
}

.el-header{
  text-align: left;
  background-color: white;
  font-size: 12px;
  height: 50px;
  line-height: 50px;


}

.el-menu, .el-menu-item {
  background-color: #26494b;
  color: white;
}
.el-menu-item:hover{
  background-color: #181818;
}

.el-aside {
  background-color: #051e49;
}

.el-container {
  width: 100%;
  min-height: 100%;
}

.el-main {
  padding: 10px;
  width: 100%;
  background-color: #F5F5F5;
}

.title_name {
  width: 200px;
  height: 50px;
  line-height: 50px;
  font-size: 20px;
  color: #fff;
  background-color: rgba(0,0,0,0.1);
  text-align: center;

}


</style>

<script setup>
import {RouterView} from "vue-router";
</script>
